package com.zzxy.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
@RequestMapping("/user")
public class UserController {
    @RequestMapping("/test")
    public String test(@RequestParam(value = "id", required = true,defaultValue = "19") Integer id) {
        System.out.println("id >>> " + id);
        return "redirect:/student/list.do";
    }
}
